package com.follow.dao;

import com.follow.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2020/9/27.
 */
@Mapper
public interface TbFollowVOMapper {



    //主键查询
    TbFollowVO selectFolOne(Integer id);


    List<TbFollowVO> selectFollowAll(
                                     @Param("startNum") Integer startNum,
                                     @Param("pageSize") Integer pageSize,
                                     @Param("id") Integer id,
                                     @Param("followId") Integer followId,
                                     @Param("followName") String followName,
                                     @Param("departmentId") Integer departmentId,
                                     @Param("departmentName") String departmentName,
                                     @Param("principal") String principal,
                                     @Param("state") Integer state,
                                     @Param("createTime") Date createTime
                                     );
    Integer selectFollowCount(
                                        @Param("id") Integer id,
                                        @Param("followId") Integer followId,
                                        @Param("followName") String followName,
                                        @Param("departmentId") Integer departmentId,
                                        @Param("departmentName") String departmentName,
                                        @Param("principal") String principal,
                                        @Param("state") Integer state,
                                        @Param("createTime") Date createTime
    );
    //全部查询科室
    List<TbDepartment> selectDepartment();
    //全部医院
    List<TbHospital> selectHospital();
    //全部级别
    List<TbLevel> selectLevel();
    //全部小组
    List<TbGroup> selectGroup();
    //批量删除
    int deleteGroup(String[] ids);
    //添加随访组用户
    int addGroup(TbFollowVO tbFollowVO);
    //添加名字
    int addFollowName(String followName);
    //添加名字id
    int addFollowNameId(String followName,String principal);

}
